'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 掠夺
 * @author sundbcn@gmail.com (sun debing)
 */

var dataApi = require('../libs/dataApi');
var _ = require('lodash');
var constantUtil = require('../util/constantUtil.js');

/**
 * 根据打猎id获取item
 * @param  {[type]} vip [description]
 * @return {[type]}     [description]
 */
exports.getHuntConf = function (hunt_id) {
    return dataApi.hunt.findById(hunt_id);
};

/**
 * 根据英雄等级获取对应固定奖励
 * @param  {[type]} vip [description]
 * @return {[type]}     [description]
 */
exports.getLvRewardConf = function (hero_id) {
    return dataApi.hero_lvl.findById(hero_id).daily_food;
};

/**
 * 获取外城猎物ID 列表
 * @param  {[type]} vip [description]
 * @return {[type]}     [description]
 */
exports.getHuntList = function () {
    var hunt_list = [];
    _.each(dataApi.hunt.all(), function (value) {
        hunt_list.push(value.id);
    });
    return hunt_list;
};
